package com.yxkj.syh.app.huarong.bean;

import java.util.List;

/**
 * 创建者：SYH
 * 时间：2020/5/28 21:53
 * 编辑者：SYH、
 * 标签：
 * 补充说明：
 */
public class PagesRequest {
    private Integer pageIndex;
    private Integer pageSize;
    private String sortFields;
    private List<SqlParam> queryList;

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public String getSortFields() {
        return sortFields;
    }

    public void setSortFields(String sortFields) {
        this.sortFields = sortFields;
    }

    public List<SqlParam> getQueryList() {
        return queryList;
    }

    public void setQueryList(List<SqlParam> queryList) {
        this.queryList = queryList;
    }

    public static class SqlParam{
        private String join = "and";
        private String key ;
        private String oper ;
        private Object value;

        public String getJoin() {
            return join;
        }

        public void setJoin(String join) {
            this.join = join;
        }

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getOper() {
            return oper;
        }

        public void setOper(String oper) {
            this.oper = oper;
        }

        public Object getValue() {
            return value;
        }

        public void setValue(Object value) {
            this.value = value;
        }
    }
}
